package com.example.sxt_practise.算法刷题;

import java.util.BitSet;
import java.util.Scanner;

/**
 * @author gaofeng
 * date 2022年03月14日 12:20
 */
public class TestBitSet {
        public static void main(String[] args) {
            System.out.println("输入:");
            Scanner s = new Scanner(System.in) ;
            String line = s.next() ;
            BitSet set = new BitSet(128) ;
            for (char c : line.toCharArray()) {
                if(!set.get(c)) {
                    set.set(c) ;
                }
            }
            System.out.println(set.cardinality()) ;
        }
}
